﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Quartz;
using Quartz.Impl;

namespace Jackie.Quartz.ConsoleServer
{
    class Program
    {
        static void Main(string[] args)
        {
            ISchedulerFactory sf = new StdSchedulerFactory();
            IScheduler sched = sf.GetScheduler();

            sched.Start();

            while (true)
            {
                System.Console.WriteLine("Type 'exit' to shutdown the server: ");
                if ("exit".Equals(System.Console.ReadLine()))
                {
                    break;
                }
            }

            sched.Shutdown(true);
        }
    }
}
